<template>
  <div class="notfound">
<h1>404</h1>
<h1>糟糕，网页走丢了！</h1>
<br>
<p v-on:click="fun()">点击跳转到首页</p>
  </div>
</template>

<script>
export default {
methods:{
    fun(){
        this.$router.push("/")
    }
}
}
</script>

<style scoped>
.notfound{
    padding-top: 1rem;
    padding-left: 1rem;
    font-size: 32px;
}
h1{
    font-size: 26px;
}
</style>